package sicnu.cs.ich.log.rest.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import sicnu.cs.ich.api.domain.form.PageParam;

/**
 * @author CaiKe
 * @date 2021/12/5 16:51
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class LoginPageParam extends PageParam {
    private String username;
    private String ip;

    public String getUsername() {
        return "".equals(username)?null:username;
    }

    public String getIp() {
        return "".equals(ip)?null:ip;
    }
}